<template>
    <div>
        <button @click="doTask">开始任务</button>
    </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import { useRouter } from "vue-router";
export default defineComponent({
    name: 'StartTask',
    setup() {
        let router = useRouter();
        let doTask = () => {
            router.push('/home');
        };

        return {
            doTask
        }
    }
})
</script>